package com.read.villager.dao;

import java.util.List;
import java.util.Map;

import com.read.common.BaseDao;
import com.read.villager.entity.po.VillagerInfoPO;

public class VillagerInfoDao extends BaseDao<VillagerInfoPO>{
	public void save(VillagerInfoPO entity){
		super.save("VMS_VILLAGER_INFO", entity);
	}
	
	public void update(VillagerInfoPO entity){
		super.updateByPK("VMS_VILLAGER_INFO", "id", entity);
	}
	
	public List<VillagerInfoPO> getList(){
		String sql = "select * from VMS_VILLAGER_INFO";
		return super.getList(sql, new VillagerInfoPO(), null);
	}
	
	public List<Map<String, Object>> getMapList(){
		String sql = "select * from VMS_VILLAGER_INFO";
		return super.getList(sql, null);
	}
}
